{dede:include filename="head.htm" /}

<div class="main">
    <div class="main1">
        <div class="pr-list">
            {dede:include filename="left_about.htm" /}
        </div><!--pr-list/-->
        <div class="main1-right">
            {dede:include filename="position.htm" /}
            
            <div class="pr-details" style="padding-bottom:20px;">
               
                <form action="#" enctype="multipart/form-data" method="post">
                    <input type="hidden" name="action" value="post" />
                    <input type="hidden" name="diyid" value="1" />
                    <input type="hidden" name="do" value="2" />
                    <table style="width:97%;" cellpadding="0" cellspacing="1">
                        <tr>
                            <td align="right" valign="top" class="write" style="width:200px;">
                                 <span class="red">* </span> 您的留言：
                            </td>
                            <td style="width:385px;">
                                <textarea name='message' id='message' ></textarea>
                            </td>
                            <td class="zhushi">
                            </td>
                        </tr>
                        <tr>
                            <td align="right" valign="top" class="write">
                                <span class="red">* </span> 姓名：
                            </td>
                            <td style="width:385px;">
                                <input type='text' name='name' id='name' class='intxt' value='' />
                            </td>
                            <td class="zhushi">
                            </td>
                        </tr>
                        <tr>
                            <td align="right" valign="top" class="write">
                                <span class="red">* </span> 联系方式：
                            </td>
                            <td style="width:385px;">
                                <input type='text' name='phone' id='phone' class='intxt' value='' />
                            </td>
                            <td class="zhushi">
                            </td>
                        </tr>
                        <tr>
                            <td align="right" valign="top" class="write">邮箱：</td>
                            <td style="width:385px;">
                                <input type='text' name='mail' id='mail' class='intxt' value='' />
                            </td>
                            <td class="zhushi">
                            </td>
                        </tr>
                        <input type="hidden" name="dede_fields" value="message,multitext;name,text;phone,text;mail,text" />
                        <input type="hidden" name="dede_fieldshash" value="72fef15eca476fdfda9b84af1dfbb982" /></table>
                        <div align='center' style='height:30px;padding-top:10px;'>
                        <input type="button" name="submit" value="保 存" class='coolbg submit' />
                    </div>
                </form>
                
            </div><!--pr-details/-->
        </div><!--main1-right/-->
    </div><!--main1/-->
    <div class="clear"></div>
</div><!--main/-->

{dede:include filename="foot.htm"/}

<script>
    $(function(){
        $('.submit').click(function(e){
            var message = $.trim($('#message').val());
            var name    = $('#name').val();
            var phone   = $('#phone').val();
            var mail    = $('#mail').val();
            if (message == ""){
                $('#message').css('border','1px solid #FF0000');
                $('#message').parents('tr').find('td.zhushi').html('您的留言不能为空');
                return false;
            }
            if (message.length < 20){
                $('#message').css('border','1px solid #FF0000');
                $('#message').parents('tr').find('td.zhushi').html('您的留言至少20个字');
                return false;
            }
            $('#message').parents('tr').find('td.zhushi').html('');
            if (name == ""){
               $('#name').css('border','1px solid #FF0000');
               $('#name').parents('tr').find('td.zhushi').html('您的姓名不能为空');
                return false; 
            }
            if (phone == ""){
               $('#phone').css('border','1px solid #FF0000');
               $('#phone').parents('tr').find('td.zhushi').html('您的联系方式不能为空');
                return false; 
            }


        })
    })
</script>
